﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;

using _1Dot9MasterData;
using _1Dot9MasterTransactions;
using _1Dot9MasterDac;

namespace _1Dot9MasterBiz
{
    public class AdminBiz : MasterBizBase
    {
        #region amdin user 정보 조회
        /// <summary>
        ///  amdin user 정보 조회
        /// </summary>        
        [Transaction(TransactionOption.Suppress)]
        public DataSet GetAdminUser(Hashtable htParams)
        {
            using (AdminDac adminDac = new AdminDac())
            {
                return adminDac.AdminUserSelect(htParams);
            }
        }
        #endregion

        #region amdin user 정보 등록
        /// <summary>
        /// amdin user 정보 등록
        /// </summary>
        [Transaction(TransactionOption.Suppress)]
        public int SetAdminUser(Hashtable htParams)
        {
            using (AdminDac adminDac = new AdminDac())
            {
                return adminDac.AdminUserInsert(htParams);
            }
        }
        #endregion

        #region amdin user 정보 수정
        /// <summary>
        /// amdin user 정보 등록
        /// </summary>
        [Transaction(TransactionOption.Suppress)]
        public int SetAdminUserInfo(Hashtable htParams)
        {
            using (AdminDac adminDac = new AdminDac())
            {
                return adminDac.AdminUserInfoUpdate(htParams);
            }
        }
        #endregion

        #region amdin user 비밀번호 수정
        /// <summary>
        /// amdin user 정보 등록
        /// </summary>
        [Transaction(TransactionOption.Suppress)]
        public int SetAdminUserPw(Hashtable htParams)
        {
            using (AdminDac adminDac = new AdminDac())
            {
                return adminDac.AdminUserPwUpdate(htParams);
            }
        }
        #endregion
    }
}
